package com.thug.service;

import com.thug.bo.Customer;
import com.thug.dao.CustomerDao;

public class CustomerService {

	private CustomerDao dao;

	public void setDao(CustomerDao dao) {
		this.dao = dao;
	}

	public Customer find(int customerId) throws Exception {
		return dao.get(customerId);
	}
	
	public void update(Customer customer) throws Exception {
		dao.update(customer);
	}
}
